-- GENERATED SPELL FOR [Fjorn] --


function spell0_29503(pUnit, Event) --@Call of Earth,n/a--
pUnit:FullCastSpellOnTarget(55512,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29503', 568, 1)
end

function spell1_29503(pUnit, Event) --@Flame Breath,n/a--
pUnit:FullCastSpellOnTarget(57801,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29503', 2000, 1)
end

function Sorts_29503(pUnit, Event)
local choix_sorts_29503 = math.random(0, 1)
if choix_sorts_29503 == 0 then
pUnit:RegisterEvent('spell0_29503', 1, 1)
end
if choix_sorts_29503 == 1 then
pUnit:RegisterEvent('spell1_29503', 1, 1)
end
end

function mob29503_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29503', math.random(1500, 3000), 1)
end

function mob29503_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29503_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29503_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29503, 1, 'mob29503_Action')
RegisterUnitEvent(29503, 2, 'mob29503_Leave')
RegisterUnitEvent(29503, 3, 'mob29503_Kill')
RegisterUnitEvent(29503, 4, 'mob29503_Die')
